import{useState} from 'react'
function App(){
     const[value,setValue]=useState('Hello')
     function onChange(event){
        console.log(event.target.value);
        setValue(event.target.value)

        
     }

      return (
        <div>
          <input type="text" value={value} onChange={onChange} />
        </div>
      )
}
export default App

